<#assign tit><#if _oper='add'>新增<#else>修改</#if>销售员</#assign>
<@page.html title=tit>
<script type="text/javascript" src="${_appPath!}/js/cal.js"></script>
<div style="width:450px;">

  <form id="fm_input" method="post" action="<#if _oper='add'>_add<#else>_edit</#if>" onsubmit="return post(this);">
    <div class="kbox">
      <table class="input">
        <tr>
          <th width="25%">编号</th>
          <td width="75%"><#if _oper='add'><input type="text" name="code" value="${sales.code!}" req="编号" size="16" maxlength="20"><span class="require">*</span><#else><input type="hidden" name="code" value="${sales.code!}">${sales.code!}</#if></td>
        </tr>
        <tr>
          <th>名称</th>
          <td><input type="text" name="chName" value="${sales.chName!}" req="名称" size="26" maxlength="50"><span class="require">*</span></td>
        </tr>
        <tr>
          <th>门店</th>
          <td><select name="shopCode"><#if shopName??><#list shopName as t><option value="${t.id}"<#if sales.shopCode?? && sales.shopCode=t.id> selected</#if>>${t.name}</option></#list></#if></select></td>
        </tr>
        <tr>
          <th>入职日期</th>
          <td><input type="text" class="date" name="entryDate" value="${sales.entryDate!}" onclick="cal(this);" size="10" maxlength="10"></td>
        </tr>
        <tr>
          <th>岗位</th>
          <td><input type="text" name="position" value="${sales.position!}" size="20" maxlength="20"></td>
        </tr>
        <tr>
          <th>备注</th>
          <td><textarea name="note" cols="30" rows="3">${sales.note!}</textarea></td>
        </tr>
        <tr>
          <th>状态</th>
          <td><input type="radio" name="status" id="enable_1" value="1"<#if sales.status=1> checked</#if>><label for="enable_1">在职</label>
            <input type="radio" name="status" id="enable_2" value="2"<#if sales.status!=1> checked</#if>><label for="enable_2">离职</label></td>
        </tr>
      </table>
    </div>
    <div class="button"><input type="submit" value="提 交"></div>
  </form>
</div>
</@page.html>